package com.gms.action;

import net.sf.json.JSONObject;

import com.gms.service.ItemService;
import com.opensymphony.xwork2.ActionSupport;

public class DeleteItemAction extends ActionSupport{
	
	private Integer itemId;
	private ItemService itemService;
	private JSONObject js;
	
	

	public JSONObject getJs() {
		return js;
	}
	public void setJs(JSONObject js) {
		this.js = js;
	}
	public ItemService getItemService() {
		return itemService;
	}
	public void setItemService(ItemService itemService) {
		this.itemService = itemService;
	}
	public Integer getItemId() {
		return itemId;
	}
	public void setItemId(Integer itemId) {
		this.itemId = itemId;
	}



	@Override
	public String execute() throws Exception {
		System.out.println("in deleteItemAction");
		itemService.deleteItem(itemId);
		return super.execute();
	}
	
	

}
